package com.siwei.mes.mapper.laboratory;

import com.siwei.mes.common.dataSource.DataSource;
import com.siwei.mes.common.dataSource.DataSourceNames;
import com.siwei.mes.entity.laboratory.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface ImportListMapper {

    //新增进料数据
    @DataSource(DataSourceNames.LABORATORY)
    public void addImportList(ImportList entity);

    //修改进料数据
    @DataSource(DataSourceNames.LABORATORY)
    public void updateImportListByImportId(ImportList entity);

    //修改进料代表数量数据
    @DataSource(DataSourceNames.LABORATORY)
    public void updateImportListProdinQuan(ImportList entity);

    //修改进料数据为已取样
    @DataSource(DataSourceNames.LABORATORY)
    void updateImportList(@Param("importId")String importId);

    //修改进料数据为已取样
    @DataSource(DataSourceNames.LABORATORY)
    void updateImportListReportID(@Param("reportId")String reportId,@Param("importId")String importId);

    //更新协会入场时间
    @DataSource(DataSourceNames.LABORATORY)
    void updateImportDateListReportID(@Param("importDate") Date importDate, @Param("importId")String importId);

    //查询最大值进场ID
    @DataSource(DataSourceNames.LABORATORY)
    public ImportList findImportListMaxImportId(@Param("year")String year);

    //根据进场id集合查询进场数据
    @DataSource(DataSourceNames.LABORATORY)
    public List<ImportList> findImportListById(@Param("stringList")List<String> stringList);

    //根据报告id集合查询进场数据
    @DataSource(DataSourceNames.LABORATORY)
    public List<ImportList> findImportListByReportId(@Param("stringList")List<String> stringList);

}
